<template>
  <div>
    <h2>学校名称：{{ name }}</h2>
    <h2>学校地址：{{ address }}</h2>
    <button @click="showName">点我输出name</button>
  </div>
</template>

<script>
import { hunru } from "../mixin";
export default {
  name: "School",
  data() {
    return {
      name: "尚硅谷",
      address: "西安",
    };
  },
  mixins: [hunru],
};
</script>

